package com.his.registration.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @BelongsProject: workspace-idea
 * @BelongsPackage: com.his.registration.pojo
 * @Author: ZhangYing
 * @Date: 2023/7/2 11:25
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Prescription {
    private Integer id;
    private Integer registerId;      //挂号id   外键
    private Integer drugId;          //药品id   外键
    private String drugUsage;        //用法用量和频次
    private Integer drugNumber;      //数量
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //日期格式转换对象 2023-06-29 14:24:28
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime creationTime;     //开立时间
    private String drugState;        //状态(已开立、已缴费、已发药、已退药、已退费)
}
